package com.example.yan_music.event;

/**
 * 事件：设置SeekBar进度更新线程的中断标志
 * 发送：当点击某个子项要开始播放音乐时发布事件
 * 接收：让SeekBar更新线程的run方法满足 isInterrupt == false来执行实时更新
 */
public class SetThreadInterrupt {
    private boolean isInterrupt;

    public SetThreadInterrupt(boolean isInterrupt) {
        this.isInterrupt = isInterrupt;
    }

    public boolean isInterrupt() {
        return isInterrupt;
    }

    public void setInterrupt(boolean interrupt) {
        isInterrupt = interrupt;
    }
}
